package com.blog.constant;

public class RedisConstant {
    public static final String USER_TOKEN_KEY = "user-token";
    public static final String ADMIN_TOKEN_KEY = "admin-token";
    public static final long TOKEN_TTL = 2L;  // token过期时间(小时)

    // redis的缓存key
    public static final String CATEGORY_REDIS_KEY = "category:all"; // 分类缓存key
    public static final long CATEGORY_REDIS_TTL = 30L; // 分类缓存的过期时间
    public static final String ARTICLE_REDIS_KEY = "article:all"; // 文章缓存key(全部的)
    public static final String ARTICLE_REDIS_ONE_KEY = "article:one"; // 文章缓存key（单个的）
    public static final long ARTICLE_REDIS_TTL = 30L; // 文章缓存的过期时间
}